package router

import (
	"github.com/gin-gonic/gin"
	"seat-service/api"
)

type dataViewRouter struct {
}

func (d *dataViewRouter) dataViewRouterGroup(Router *gin.RouterGroup) (dataView *gin.RouterGroup) {
	dataApi := api.DataViewApi{}
	dataView = Router.Group("/data")
	{
		dataView.GET("/top/reserveInformation", dataApi.QueryReserveInformation)                  //数据看板上方的数据,天,周,月,年的预约 信息
		dataView.GET("/min/reserveCountDay", dataApi.QueryDayReserveCount)                        //按天筛选每天的预约次数
		dataView.GET("/min/reserveCountMonth", dataApi.QueryMonthReserveCount)                    //按月份筛选 预约次数
		dataView.GET("/college/reserveInformation", dataApi.QueryReserveInformationByCollege)     //查询每一个学院的预约情况
		dataView.GET("/classroom/reserveInformation", dataApi.QueryReserveInformationByClassroom) //查询教室预约情况

	}
	return
}
